package pt.zero.zero.view;

import pt.zero.zero.model.Zapping;
import swing.Dialog;
import swing.Dialogs;
import swing.EntityTable;

import static pt.zero.zero.model.Zapping.ENTITY;

public class ZappingDialog extends Dialog {

    public ZappingDialog() {
        super(Flag.CENTERED, Flag.PACKED);

        EntityTable<String, Zapping.Item> entityTable = new EntityTable<>(ENTITY);
        getContentPane().add(entityTable);
    }

    public static void main(String... args) {
        Dialogs.show(new EntityTable<>(ENTITY));
    }
}
